﻿<Page x:Class="CalligraphyEditor.DevRubbingPhotos"
      xmlns:dxg="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v12.1"
      xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="DevRubbingPhotos">

    <Grid>
        <dxg:GridControl Grid.Row="1"  Name="Gcl_RubbingPhotos"  ItemsSource="{Binding}" >
            <dxg:GridControl.Columns>
                <dxg:GridColumn    Header="图片" ReadOnly="True"  AllowEditing="False" >
                    <!--<dxg:GridColumn.EditSettings >
                        <dxe:ImageEditSettings   />
                    </dxg:GridColumn.EditSettings>-->
                    <dxg:GridColumn.CellTemplate>
                        <DataTemplate>
                                <Image Margin="0,0,0,0"  Stretch="Uniform"   Source="{Binding Path=Data.Photo, Mode=OneWay}"  />
                        </DataTemplate>
                    </dxg:GridColumn.CellTemplate>
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="Text" Header="译文" ReadOnly="True">
                    <dxg:GridColumn.EditSettings >
                        <dxe:TextEditSettings   TextWrapping="Wrap" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:CardView AllowEditing="True"  ShowGroupedColumns="True"  NavigationStyle="Cell" FixedSize="300" MinFixedSize="150" Name="view" CardHeaderDisplayMemberBinding="{Binding Path=Data.PageNumber, RelativeSource={RelativeSource Self}}"  />
            </dxg:GridControl.View>
        </dxg:GridControl>
    </Grid>
</Page>
